﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VNAManagebank
{
    public partial class Splash : Form
    {
        public Splash()
        {
            InitializeComponent();
            Process.Value = 0;
            RunProcess.Start();
        }

        private void RunProcess_Tick(object sender, EventArgs e)
        {
            if (Process.Value < 100)
            {
                Process.Value += 1;
            }
            else if (Process.Value == 100)
            {
                RunProcess.Stop();
                Process.Value = 100;
                System.Threading.Thread.Sleep(1000);
                Process.Value = 100;
                this.Hide();
                new Main().Show();
            }
        }
    }
}
